﻿/*
 * Copyright (c) United Binary LLC.  All rights reserved.
 * 
 * This code is licensed under the MIT License
 * 
 * SEE: http://harnessit.codeplex.com/license
 * 
 */
namespace UnitedBinary.UnitTests.Framework
{
	public static class FrameworkExtensionsForString 
	{
		public static ITestStringsDoes Does(this string text)
		{
			FrameworkExtensions.VerifyLastTestWasRun();
			StringTestExtensionItem test = new StringTestExtensionItem(text);
			FrameworkExtensions.PendingTests.Add( test );

			return test;
		}

		public static ITestStringsIs Is(this string text)
		{
			FrameworkExtensions.VerifyLastTestWasRun();
			StringTestExtensionItem test = new StringTestExtensionItem(text);
			FrameworkExtensions.PendingTests.Add( test );

			return test;
		}

		public static ITestStringsDoes Does(this ITestStringsIs test)
		{
			return (ITestStringsDoes)test;
		}

		public static ITestStringsIs Is(this ITestStringsDoes test)
		{
			return (ITestStringsIs)test;
		}

		public static ITestStringAnd And(this ITestStringsDoes test)
		{
			return (ITestStringAnd)test;
		}

		public static ITestStringAnd And(this ITestStringsIs test)
		{
			return (ITestStringAnd)test;
		}		
	}
}